<case value="select2">
    <!--
        濡傛灉閫夐」鐨勫�兼槸鑷畾涔夋暟缁�(蹇呴』瀹氫箟key涓簍itle鐨勫厓绱�)闇�瑕佽В鏋愶紝濡傛灉閫夐」鐨勫�兼槸甯歌瀛楃涓茬洿鎺ユ樉绀�
        姝ゅ涓昏鏄敤鏉ョ粰option瀹氫箟鏇村鐨勫睘鎬э紝姣斿data-ia=1锛岄偅涔坥ption搴斾负
        $option = array('title' => 鏍囬, 'data-id' => 1);
    -->
    <select name="{$[type]form.name}" class="form-control select" {$[type]form.extra_attr}>
        <option value=''>请选择</option>
        <php>
        	
        	foreach($form['options'] as $val){
        		 if($form['value']==$val['id']){
                 echo '<option selected value="'.$val['id'].'" > '.$val['title'].'</option>';
                 }
                 else{
                  echo '<option value="'.$val['id'].'" > '.$val['title'].'</option>';
                 }
        	}
        </php>
       
    </select>
</case>